﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.WebUI.Admin.Admin
{
    public partial class Rights : MasterPage
    {
        public string strOperation = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetPower();
            }
        }

        private void GetPower()
        {
            this.DataList1.DataSource = new BLL.RightsManage().GetRights(true);
            this.DataList1.DataBind();
        }

        protected IList<Right> BindPower(object rootId)
        {
            return new BLL.RightsManage().GetRights((int) rootId, true);
        }
    }
}